package udpInvoker.test;

import udpInvoker.main.lib.TopicSubscriber;
import udpInvoker.main.lib.Invoker;

/**
 * Created by IntelliJ IDEA.
 * User: esr
 * Date: 20.nov.2008
 * Time: 16:46:32
 * Copyright 2008  Espen Skjervold, FFI
 */
public class SubscriberTester implements TopicSubscriber {




    public SubscriberTester() {

        Invoker invoker = new Invoker();

        invoker.subscribe(this, "news");




    }








    public static void main(String[] args) {

        new SubscriberTester();




    }


    public void deliverMessage(String topic, Object object) {
        System.out.println(topic + " was delivered: " + object);
    }
}
